package com.yuwei.bean;

import java.util.ArrayList;
import java.util.List;

public class Right{
    private int id;
    private String authName;
    private String level="";
    private int pid;
    private String path="";
    private List<Right> children = new ArrayList<>();

    public void addRight(Right right){
        children.add(right);
    }

    public List<Right> getChildren() {
        return children;
    }

    public Right(int id) {
        this.id = id;
    }

    public int getId() {
        return id;
    }

    public String getAuthName() {
        return authName;
    }

    public void setAuthName(String authName) {
        this.authName = authName;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }


}
